package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.CartItem;
import org.csu.mypetstore.domain.Item;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Repository
public interface ItemMapper {
    void updateInventoryQuantity(String itemId, int quantity);

    int getInventoryQuantity(String itemId);

    List<Item> getItemListByProduct(String productId);

    Item getItem(String itemId);

    void saveItemToDatabase(String itemId, String username, int quantity);

    void deleteItemFromDatabase(String itemId, String username);

    void updateQuantityInDatabase(String username, String itemId, int quantity);

    List<Item> getItemsFromDatabase(String username);

    void updateadmindesandprice(String itemid, String description, BigDecimal listprice);

    void insertItem(Item item);

    void admindelete(String itemId);

    void insertInventory(String itemId, int qty);

}
